<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2019/12/14
 * Time: 13:37
 */

namespace app\adminapiv3\controller;

//代理
class ServerProxy extends Base
{
    /**
     * @name 获取代理设置
     * @author wx
     * @date 2019/12/14 13:38
     */
    public function get()
    {
        $server = new \app\adminapiv3\service\ServerProxy();

        $list = $server->toDo('getProxy',[]);

        $this->jsonOutPut($list);

    }

    /**
     * @name 更改代理设置
     * @author wx
     * @date 2019/12/14 13:38
     */
    public function modify()
    {
        $ip = $this->filterInput('ip*');
        $server = new \app\adminapiv3\service\ServerProxy();
        $server->toDo('modifyCommon',[$ip]);

        $this->jsonOutPut();
    }


}